//
//  HMTabBar.m
//  OC新浪微博
//
//  Created by wyman on 16/4/9.
//  Copyright © 2016年 wyman. All rights reserved.
//

#import "HMTabBar.h"

@implementation HMTabBar
#define count 5
-(instancetype)initWithFrame:(CGRect)frame
{
    if ([super initWithFrame:frame]) {
        //添加按钮
        [self addTabItem];
    }

    return self;
}

-(void)addTabItem
{
    CGFloat width = self.frame.size.width / count;
    
    CGRect newFrame = CGRectMake(0, 0, width, self.frame.size.height);
    
    self.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        if ([self.subviews isKindOfClass:[NSClassFromString(@"UITabBarButton")]]) {
            <#statements#>
        }
    }

}
@end
